package br.com.lh.urabuilder.command
{
	import br.com.lh.urabuilder.domain.xml.UraXml;
	import br.com.lh.urabuilder.event.SetInitialActionEvent;
	import br.com.lh.urabuilder.model.UraModelLocator;
	
	import com.adobe.cairngorm.commands.ICommand;
	import com.adobe.cairngorm.control.CairngormEvent;

	public class SetInitialActionCommand implements ICommand
	{
		public function SetInitialActionCommand(){
		}

		public function execute(event:CairngormEvent):void{
			var id:int = SetInitialActionEvent(event).initialActionId;
			var uraXml:UraXml =UraModelLocator.getInstance().xmlManager.getUraXml();
			uraXml.setInitialActionId(id);
		}
		
		
	}
}